from selenium_base import *

url = 'http://47.103.13.124:8001/captcha_mousemove'

brower = get_brower()
try:
    brower.get(url)
    brower.add_cookie({"name": "session",
                       "value": ".eJyrViotTi1SsqpWyiyOT0zJzcxTsjLQUcrJTwexSopKU3WUcvOTMnNSlayUDM3gQEkHrDE-M0XJyhjCzkvMBSmKKTVNMjMDkiamFkq1tQDfeR3n.YLOC4w.Xbnx1QbrvUh8OUPb5jauC_Aau9U"})
    brower.get(url)  # 再次访问，使用加载的Cookies
    first_btn = brower.find_element_by_class_name('button1')
    first_btn.click()
finally:
    time.sleep(5)
    brower.close()
